#!/bin/bash
DEVOPS_IP=`jq -r '."outputs"."eip_info"."value"."eip_ecs_devops-'$PROJECT_ENV'"."address"' "terraform/envs/$PROJECT_ENV/eip/terraform.tfstate"`
ssh -i terraform/envs/dev/keypair/private_key-myapp-${PROJECT_ENV}.pem -f -N -D 127.0.0.1:1080 root@${DEVOPS_IP}
export ssh_args="-o ProxyCommand='nc -x 127.0.0.1:1080 %h %p'"
ANSIBLE_HOST_KEY_CHECKING=False
